package com.java46.struts2.base.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * @ClassName TUserEntity
 * @Description 用户信息
 * @Author zuxia
 * @Date 2018/7/17 14:38
 * @Vcrsion 1.0
 **/
@Entity
@Table(name = "t_user", schema = "fullboydb")
public class TUserEntity {
    private int uId;
    private String uSign;
    private String uName;

    @Id
    @Column(name = "uId")
    public int getuId() {
        return uId;
    }

    public void setuId(int uId) {
        this.uId = uId;
    }

    @Basic
    @Column(name = "uSign")
    public String getuSign() {
        return uSign;
    }

    public void setuSign(String uSign) {
        this.uSign = uSign;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TUserEntity that = (TUserEntity) o;
        return uId == that.uId &&
                Objects.equals(uSign, that.uSign);
    }

    @Override
    public int hashCode() {

        return Objects.hash(uId, uSign);
    }

    @Basic
    @Column(name = "uName")
    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }
}
